#ifndef MAINFRAME_H
#define MAINFRAME_H
#include <wx/mediactrl.h>
#include "SongList.h"
#include <wx/timer.h>
#include <irrKlang.h>
#include "SongListFrame.h"

class MainFrame: public wxFrame
{
	wxString * username;
	wxTimer *myTimer;
	irrklang::ISoundEngine* engine;
	irrklang::ISound* currentTrack;
	void SetUpGUI(wxBoxSizer *sizer1,wxBoxSizer *sizer2,
				  wxBoxSizer *sizer3,wxBoxSizer *sizer4);
	void SetUpTimer(MainFrame* thisFrame);
	void SetUpOutput(wxBoxSizer *sizer4);
	void SetUpSongList(wxBoxSizer *sizer2);
	void SetUpToolbar(void);
	void SetUpLayout(void);
	void SetUpControls(wxBoxSizer *sizer1);
	void SetUpTagList(wxBoxSizer *sizer3);

public:

    MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
	wxTextCtrl *output;
    void OnQuit(wxCommandEvent& event);
    void OnAbout(wxCommandEvent& event);
	void OnAddMp3(wxCommandEvent& event);
	void OnPlay(wxCommandEvent& event);
	void OnPause(wxCommandEvent& event);
	void OnMediaStop(const wxMediaEvent& evt);
	void OnTimer(wxTimerEvent& event);
	SongListFrame *songListFrame;
	SongList *mySongList;
	wxMediaCtrl *myMedia;
	wxButton *stopButton;
	wxString  *CurrentDocPath;
	
	DECLARE_EVENT_TABLE()
};


#endif